package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `json:"mobile" gorm:"type:varchar(11);not null;comment:'手机号'"`
	Password string `json:"password" gorm:"type:varchar(32);not null;comment:'密码'"`
	Img      string `json:"img" gorm:"type:varchar(255);not null;comment:'头像'"`
	Name     string `json:"name" gorm:"type:varchar(30);not null;comment:'会员名'"`
	Sex      string `json:"sex" gorm:"type:varchar(20);not null;comment:'性别'"`
	Intro    string `json:"intro" gorm:"type:varchar(255);not null;comment:'个性签名'"`
}
